<?php

    $form = form_remote_tag('delete_file_type').
            hidden_field_tag('id',$type['id']).
            hidden_field_tag('action','delete_file_type').
            image_submit_tag('delete',get_installed_path().'/images/admin/delete.gif',array('onclick'=>"return delete_confirm('type_{$type['id']}')")).
            end_form_tag();
    $image = !empty($type['icon']) ? "<img src='".get_installed_path()."/images/admin/icons/{$type['icon']}' />" : '';
    printf('<div id="type_%s" class="type_class">
            %s
            <b>%s</b>
            <div class="description"><b>Ext:</b> %s &nbsp;&nbsp;&nbsp; %s %s</div>
            </div>',
            $type['id'],
            $form,                        
            $type['mime'],
            $type['ext'], 
            $image,                   
            $type['icon']      
            );

?>